]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Use operator shorthand
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Aug 2019 19:12:21 +0000 (21:12 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 20:59:31 +0000 (20:59 +0000)
Shorthands like a += b are well-established, so prefer them over the
less concise a = a + b.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

js/ui/workspace.js

index d16a5c1ca551fe37a73cddfc43d467e85ba359f4..b38a9428e8d2b334ba16f2b1447101098482ce65 100644 (file)
@@ -948,7 +948,7 @@ var LayoutStrategy = class {
             y += row.height * row.additionalScale + this._rowSpacing;
         }
 
-        compensation = compensation / 2;
+        compensation /= 2;
 
         for (let i = 0; i < rows.length; i++) {
             let row = rows[i];